<html>
	<body BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#AAFFAA" VLINK="#AAFFAA">
		<hr COLOR="#7777FF" ALIGN="center" WIDTH="90%">
		<center>
			<img src="../Xados-icon64.png">
			<h2>Xados Editor Window</h2>
			<h3>Common Scripts</h3>
		</center>
		<hr COLOR="#7777FF" ALIGN="center" WIDTH="90%">
		<p>
		<font size=4>
			<img src="../energy.png">
			<u>Common</u> <u>Scripts</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;As we said <a href="scripts.html"
			>previously</a>, in personal directory, the user has the
			configurations for each script, in our examples we will
			think in the folder <b>proof.Xados</b> that can be
			executed running <I><b>Xados proof</b></I>;
			(of course, only if it really exists). In this folder we
			will have a file named <b>script</b> that hold the
			configuration, this file will be out theme by now.
		</font>
		<p><br/>
		<font size=4>
			<img src="../energy.png">
			<u>Basic</u> <u>Command</u> <u>Structure</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;Each command in the <b>script</b>
			is a sequence of phrases separeted by a colom (':').
			Always, the first phrase refers to the property to modify
			and the other phrases are parameters for it. It there are
			more than needed parameter, <b>Xados</b> will ignore
			them, but if one or more of required parameter is not
			presentit will will be taken with a default value. Or, in
			the worst case, it will generate an error that closes the
			window (remember, it is a beta version and its not
			completely stable).
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Property to set:parameter 1:parameter 2:...</b>
			</font>
		</center>
		<p><br/>
		<font size=4>
			<img src="../energy.png">
			<u>Macro</u> <u>Buttons</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;The first thing to know is how to
			activate a <a href="../executer/macrobuttons.html">macro
			button</a>. To rich this we need to use the <b>property
			setter</b>: <b>Macro Button</b>. this setter needs
			three parameters:<ul>
				<li>Position: It is a number between 0 and 7.
				<li>Name: The name of the button.
				<li>Command: The command to be executed in the
				    command line. It can contains keywords for
				    the <a href="../executer/browserframe.html"
				    >browser</a>, <a
				    href="../executer/menuframe.html">menu</a>,
				    etc.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Macro Button:Position:Name:Command</b>
			</font>
		</center>
		<p><br/>	
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;If the position is not a number,
			higher than 7, lower than 0 or it is not given, it will
			be taken as zero. If the position assigned is already
			used, next position will be taken.
		</font>
		<p><br/>
		<font size=4>
			<img src="../energy.png">
			<u>Browser</u> <u>Frame</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;The <a
			href="../executer/browserframe.html">browser frame</a>
			can be activated with the setter <b>Use Browser</b>.
			It needs two parameters:<ul>
				<li>Directory: It is the directory to use when
				    the script begins to run.
				<li>Keyword: This is a key that can be used in <a
				    href="../executer/macrobuttons.html">macro
				    buttons</a>, <a
				    href="../executer/menuframe.html">menus</a>,
				    etc.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Use Browser:Directory:Keyword</b>
			</font>
		</center>
		<p><br/>	
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;The directory can be the word
			<b>HOME</b>, when this one appairs, the init
			directory is the home of the current user.
		</font>
		<p><br/>	
		<font size=4>
			<img src="../energy.png">
			<u>Check</u> <u>Boxes</u> <u>Frame</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;The <a
			href="../executer/checkboxesframe.html">check boxes
			frame</a> appairs when the setter <b>Use Check
			Boxes</b> is used. It needs only one parameter:<ul>
				<li>Keyword: The key to replace with flags set
			            by check boxes.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Use Check Boxes:Keyword</b>
			</font>
		</center>
		<p><br/>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;Next theme is to know how to add
			a specific check box, this can be done with the setter
			<b>Add Check Box</b>. It needs two parameters:<ul>
				<li>Name: The name to be shown beside the check
			            box button.
				<li>Command: The command that the button sets.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Add Check Box:Name:Command</b>
			</font>
		</center>
		<p><br/>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;Remember, only eigth check box
			can be used, others will be ingnored.
		</font>
		<p><br/>	
		<font size=4>
			<img src="../energy.png">
			<u>Menu</u> <u>Frame</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;To enable the <a
			href="../executer/menuframe.html">menu frame</a>, the
			setter <b>Use Menu</b>. It needs only one parameter:
			<ul>
				<li>Keyword: The key to use when the menu has
				    checking options.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Use Menu:Keyword</b>
			</font>
		</center>
		<p><br/>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;Here we have the same theme, we
			need to add a specific menu, so we can use the setter
			<b>Add Menu</b>. It needs just one parameters:<ul>
				<li>Name: The name of menu to load.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Add Menu:Name</b>
			</font>
		</center>
		<p><br/>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;When the script loads and a menu
			is required, <b>Xados</b> searches for a script with
			the extension <b>.menu</b> and the same name
			to the secified menu.
		</font>
		<p><br/>	
		<font size=4>
			<img src="../energy.png">
			<u>Main</u> <u>Program</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;<b>Xados</b> is usually use
			for a specific program (in our examples, it can be
			<b>proof</b>), That is why we have the setter <b>Main
			Program</b>. When it appairs, the <a
			href="http://xados.sourceforge.net/help/executer/decript.html">description frame</a> is
			shown. It needs three parameters:<ul>
				<li>Name: The executable name of program.
				<li>Keyword: The key to replace when the program
				    is required.
				<li>Description: A short description of program
				    propouse.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Main Program:Name:Keyword:Description</b>
			</font>
		</center>
		<p><br/>	
		<font size=4>
			<img src="../energy.png">
			<u>Program</u> <u>Logo</u>:<br/>
		</font>
		<font size=3>
			&nbsp;&nbsp;&nbsp;&nbsp;As default, <b>Xados</b>
			shows everytime the same logo, but it can be changed
			with the setter <b>Xados Logo</b>. Is recommended to
			use a 100x380 pixel picture.This setter needs one
			parameters:<ul>
				<li>Picture: The relative adress of a picture
				    file.
			</ul>
		</font>
		<br/>
		<center>
			<font size=3>
				<b>Xados Logo:Picture</b>
			</font>
		</center>
		<p><br/>
		<hr COLOR="#7777FF" ALIGN="center" WIDTH="90%">
	</body>
</html>
